<?phpuse Illuminate\Database\Eloquent\Model;use Illuminate\Database\Capsule\Manager as DB;class gudongModel extends Model{	protected $table 		= 'gudong';	public	  $primaryKey	= 'gudong_id';    protected function serializeDate($date)    {        return $date->format('Y-m-d H:i:s');    }    public function member(){        return $this->belongsTo(memberModel::class, 'gudong_id', 'id');    }    public function gudong_signin(){        return $this->hasOne(gudonglogModel::class, 'gudong_id', 'gudong_id')->where('event', '=', 'signin')->orderBy('id', 'desc');    }    public function gudong_log(){        return $this->hasMany(gudonglogModel::class, 'gudong_id', 'gudong_id')->orderBy('id', 'desc');    }}